package com.ruoyi.AI;

import lombok.Data;

/**
 * @author Ryan
 * @version 1.0
 * @date 2024/5/9 11:26
 */
@Data
public class ChatCompletionMessage {

    public String role;
    public String name;
    public String content;
    public Boolean partial;

    public ChatCompletionMessage(String role, String content) {
        this.role = role;
        this.content = content;
    }

    public ChatCompletionMessage(String role, String name, String content, Boolean partial) {
        this.role = role;
        this.name = name;
        this.content = content;
        this.partial = partial;
    }

}
